// 导入axios实例request
import request from '@/utils/request'

// 准备封装axios
export function login(data) {
// 封装axios
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
export function getimg(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}
export function logout() {
  return request({

  })
}


